<!--
 * @Author: songxiang songxiang0806@qq.com
 * @Date: 2025-08-28 09:32:24
 * @LastEditors: songxiang songxiang0806@qq.com
 * @LastEditTime: 2025-08-28 11:11:21
 * @FilePath: \supermap-webgl\src\components\measure\measure.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <menus-container title="量算">
    <el-row>
      <el-button @click="onMeasureDis">测距</el-button>
      <el-button @click="onMeasureArea">测面</el-button>
      <el-button @click="onMeasureHeight">测高</el-button>
      <el-button @click="onClearAll">清除</el-button>
    </el-row>
    <el-row>
      <el-switch inactive-text="开启捕捉" v-model="pickPointEnabled">
        是否开启捕捉
      </el-switch>
      <br />
    </el-row>
  </menus-container>
</template>

<script lang="ts" setup>
import {} from 'vue'
import MenusContainer from '/@src/components/menus-container/menus-container.vue'
import useMeasure from './use-measure'

const {
  pickPointEnabled,
  onMeasureDis,
  onMeasureArea,
  onMeasureHeight,
  onClearAll
} = useMeasure()
</script>

<style scoped lang="scss">
@import url('./measure.scss');
</style>
